Learning how to program a Chess game using bit wise operations in C