bug fixed

found a bug in pervious version that caused game to crash if player got
stuck in a location. So I fixed it in this version.