How to fix out of bounds Exception at line 56.