added Game.setError, removed unused functions