Fixed error which was causing too instances of the game and gpu context