fixed array out of bounds error when clicking side wall