little edit

-added horizontalMoves' to make horizontalMoves just accept current
state as parameter (so it's like verticalMoves)