Big move_gen bug fixed