need to fix game from crashing