Renamed onAdd method to init in GameState class for consistency between classes.