Working revision. Currently cannot create games from the UI however