the player stops moving when it touches the spike
I'm not sure if this is what you wanted me to fix If there are other things you want me to fix, ask me in comments