broke the game but refactoring and fixing