If there are no possible moves, returns board