implement execute move for ArrayBoard
refactor