Changed bases to use legal move in list/range instead of forwards/backwards