MineSweeper using Blocking Sockets in C