Pass in board state
Function for valid moves