test code in player.java