How are the characters foiled in hamlet?