Fix for #124. Not bounds checking the array apparently causes some problems.
Fix key error when leaving boss tile