Added RSpec and test cases for Player class.