Handle mouse events and add stubs for moving pieces.
Add debug flags.