check opposite squares