Minimalistic engine coded from scratch in C