added mouse locking and basic pausing