Moved everything into a gamestate class

should make updating clients and server easier