Compeleted basic game logic>