Update bitboard.cpp

reduce scope of variables