Event-based game logic

Description

Main code

Comments