Making the GUI respond to game events.
Merged changes.