Refactoring and create connection view to game logic.