Fixes issue #19 (character being able to jump out of bounds)