Use the left and right arrow keys to move. Change the board length using the variable in the top left.
Made in about an hour...