finally got while loops to work foreal, downside is im storing ints as 01,02 instead of the full value