Java loop should work right now, forgot to order it earlier