More game logic stuff.

Added a bit of server-side game logic. More can be implemented when the net lib has a wrapper for our commands.