A Algorithm Example Code Python Game