null pointer exception when going out of bounds. found error.