Completed printSquares