added move function and called it from world