use replace_top method to replace scene stack top
fix distance from player party
support block passing in Array's index and rindex
clean code
fix pop_count and improve Player.update