Update engine.R for groovy

Added groovy interpreter as an engine