Merge pull request #21 from Andreis13/master

Basic nerworking mechanism.
Merge pull request #23 from Andreis13/master

Refactor game logic.
Merge pull request #27 from Andreis13/master

Merge into master.