replaced GameEngine class with Prof's version due to bug