First working version of the game.
There still have a lot to do, especially in error checks.