Fixed pygame quit check