modified input from array to matrices

- will have to modify the cleanHouses method