To debug, I debugged by moving monkey to the rock when the flag was clicked, I also made monkey glide back to rock after he sips the water.