Move location of legal moves implementation.