Update engine.rb

fixed some shit that weren't working for me :D