change player.rb to be more simple