Added code to io.c to convert user inputted values into 0-7 indices.