Modifying create game API to work with server