divede bitwise operations from src/Board
optimize by bitwise operation