Refactored some server code and added functionality to allow for multiple concurrent games