Add function sameBox to check if two covers are in the same box