Made sandbox mode a different gamestate.

Pressing 's' to switch no longer works, but I prefer it that way.
Also did tons of stuff I'm either forgetting or too lazy to write.