added onInit method to Game class