window correctly opens and can be closed.
wrote most of the triangle tutorial code, but failing!