set up the player calculation