My program is not doing the hunt properly, it crashes or restarts the game. If anyone knows fix this please help me