Updated syntax issues in SceneFactory.java