Converted search to use BitBoard

Some new functions have been added to BitBoard as well