bug fixes to split logic in player.rb. works now