Game of fifteen written in C for CS50 class