Added: Engine

Added Engine and re-wrote the code to make the program operational