I rewrote this program so that it uses mouse handlers instead. Not sure if these work in P5, but these work on Khan!