Created Engine.java + some changes

TODO:  fix errors and finish Engine