click events to change maze