Added Engine class, finished main()