implemented Engine.move() method.