refactor
finish basic game logic, now it is ready to play