*Changed game loop from while to do
   The program wasn't closing properly before and
now with a do loop it closes when the thing is supposed to