cleaning up still. Also set motion to become 0 if leaving mouse mode