Simple typing game written in c