refactoring code with command pattern
code refactoring complete, game state is done