Added new code to engine.

Merged code from Actors files into Engine files. Program wouldn't
compile or run properly unless I did it this way. The code is slightly
modified from the examples I have been working from so that it better
works with visual studio 2012.