Allow ESCAPE instead of the window button to quit
Remove unneeded `global` statements from test.py
Move background drawing code into arena class

This is to improve support for having a choice of arena layouts in
future.