We have a great game loop. I tried several time to bring the square at the end but didn't succeed ^^
I saw that some green rocks bounce the player instead of killing him. I don't know if it was attend.
Maybe to improve the readability of the AI block you could add a trail therefore it will be easy to understand the trajectory.
Well done mate :)