Improved end point position on generated maze