game is now working correctly