renamed some variables in getOccupiedSquaresBy... and added function
getSquare in SquareHelper to be more generic.