Refactor mouse module. Deprecate "awaitingBomb" and "drawMode" globals in favor of flags