Click handler for canvas mouse clicks
Checks to see if the barrier should go or not