Added some game logic and other stuff