Added Game Loop and Event Processing.

also added settings for Release builds.