Added code to test the player