Created a simple game logic