made changes to our is connected class
added new twosquares class