Python programs to solve the colossal cue adventure