added check for opposite color when jumping