Fixed error when clicking out of range of squares
Fixed clicks within margins selecting boxes when it shouldnt