Fixed the mouse template matching such that the mouse can now explorer
all space up to the border