Changed repl from switch to map

Changed from switch statement read about print loop, now using map from tokens to functions method