fixed method `int move()` now working with heap