Implemented a simple game event handler.