Big commit. Got a lot of game mechanics working.