Calculate player coordinates