Updated chooseMode, function prototype is in main.h, next will test io.c getMode function