Update unbeatable_computer.rb

* moved to library
* added documentation
* removed excess ()s
* simplified code