ascii terminal chess in C