chess game written in C