Add OS detection, game now (technically) works on Mac OS and Linux.
Move more singleplayer code to a script.