Check player position before sending it to the client, not after