Made huge nested if-else into pattern matching statement in interpreter