Update player.rb

simpler code.