Started working on implementing the isValid function

I need Matt's help with understanding the mouse event's though