Written a very basic escape behaviour, does not respect boundaries.