Use limit of move array and not boardSize.

Signed-off-by: Gary Pamparà <gpampara@gmail.com>