Slide the board in any direction without rotating

Add a function: slide(board, direction)