Fixing segfault when recreating the game