Added debug method. Game still crashes, but bug has been found, now fix