Changed type of squares[]