Shows how to fix out of bounds and shift

Still not correct because other parts in the program need to be changed.