wrote tests for the player function