moved function

some slight bug fixes and moved a function from game to player because
it didn't need to be in game