Working again! Still needs bounces though.

An if statement in the color stage had a typo.....
Also we had forgotten some parentheses in the two first stages.