The game crashes at the end but otherwise it is an original idea.
I am new in game development and I don't know how to fix this. So help me if you know how to fix this.