add tests and finish off the functionality for switching between singleTile true and false