Removed conditional statements and following the DRY concept.
Removed conditional statements and following the DRY concept.
Update engine.rb

I've done a bit more of refactoring.
Merge pull request #75 from nbit001/cleaner_engine

Cleaner engine