Back to scratch

Started again in order to avoid lists of errors. At point now where
window should open and close very quickly, errors involving SDL prove to
be a problem, emailed Brian.