Fix weird ideal solution for free play levels.
Shorter and cleaner code.
Merge pull request #407 from code-dot-org/blockly_fix

Fix weird ideal solution for free play levels.