Added mouse locking.
Added Game modes and OS detection.