If

is odd, then color the board in chessboard manner, then there are more black square than white square, vice versa. That is no cycle exists.
Hence, consider even positive integer
.
We claim that the answer is
.
The construction is to construct a board with arrows forming cycles, then pick a square to start and then reverse the rotation to satisfy the condition.
Since, in every

moves, the arrows return to its initial orientation, there are

squares to start with. That is

good cells.
Now, we are left to show that no board with more than

good cells exists.
Suppose there exist some board with more good cells than
. Since, each cycle can gives us at most

good cells, there exist another cycles in such squares. Call these

cycle,

and
. Suppose the good cells from cycles

and

are in squares of the same colors. Note that if at least one arrows when it is in the same orientation in both cycles, then the rest of the arrows in both cycles are same. For any arrow
, let

denote the number of moves done when the arrow

is used in modulo
. Also, for any arrow

in cycle

in square

at some moment, denote

as an arrow in

in square

in the exact same moment.
Hence, note that

and since both cycle have good cells of the same colors, we have

Hence,

That is

is the reflection of
. So, we run into contradiction, since the squares in the corner will point out of the grids.
Hence, good cells in

and

are different colors. This mean

.
In this case, there are no edge

such that Turbo travel through

in both cycles

and
(By parity arguments of arrows). Hence, contradiction since, the corner square have only

edges, which is inevitably used as edges to get in and get out of the squares. Hence, we are done.
