redirected equals method and altered areAdjacent method