added square on canvas and found hit points