Hopelessly snafu'd program