Fix bug 153, findPosX and findPosY don't take borders into account. This also fixes...