Update controller.js

Add support for shadow in freeDrawing mode
Yeah, definitely. Nothing magical here and I'm pretty sure we have return in other places. Actually, it's likely that engines completely eliminate dead cases like `else { 1 }` since it's a no-op statement.