Update player.rb

* Moved to library
* simplified code