Added state machine to handle game logic, pressing a key starts the
drawing process.
Merge remote-tracking branch 'origin/master'