Added partially the game logic. Not completed yet!