You never change correct value to TRUE, so it checks all 5 leters, trys to take 6th, and crashes. After
char guess = sc.next().charAt(0);
add
correct = guess=='A';
also, your top for cycle never ends. So you probably want add break somewhere.
Edit: and while correct == false you are reading 1st, 3rd, 5th symbol. Probably you didn't intended to do that.