try putting the Player action above the main function....