finding squre using gui