Functions, trouble with switch statements still