RB1 is also AN10.
You need to disable the analog functions on the pins you want to use as digital.

ANSEL and ANSELH
<br>