   true
 
 noValidMove = (board) ->
-  newBoard = move(board, direction)
+  for direction in ['up', 'down', 'left', 'right']
+    newBoard = move(board, direction)
   if moveIsValid(board, newBoard)
     return false
   true

        else
          # show board
          showBoard(@board)
      else
        console.log "Invalid"


move = (board, direction) ->
  newBoard = buildBoard()
  for i in [0..3]
    if direction in ['right', 'left']
      row = getRow(i, board)
      row = mergeCells(row, direction)
      row = collapseCells(row, direction)
      setRow(row, i, newBoard)
    else if direction in ['up', 'down']
      column = getCol(i, board)
      column = mergeCells(column, direction)
      column = collapseCells(column, direction)
