finds the next move, but is currently not updated the board properly