Added squaresInDirection