Working game loop, need to ensure handling of non-integer input