isfile is really a boolean but I don't use C99 boolean so make it int
Change color numbers by an enum for readability

yay, a legitimate enum use !