The error happens when the character's y-value is equal to 0, and you
try to get the dungeon tile at [y+y_change][x+x_change]. Since y_change is -1
when the character moves up, this results in an index of -1. I'm not sure how
that should be fixed... but at least that's why it happens.