Added method that will be useful in the future.

Will fix bugs where enemy glitches off a block.