Backend stuff almost done. What's left are controls for the global game_state. (Maybe other stuff...)