detect a square and map it to hand