basic event driven gameEngine skeleton