when the content of position_to_surface_index isn't correct, throw an exception to quit the game.
Merge branch 'dev' of github.com:itZhy/Rich into dev