[Fix] a bug introduce by issue #28
Issue #17: Make it possible to lose
Issue #25 Preliminary work: Adding debugging support, passing some of…
[Fix] Ball color change is now part of the the 'write to DOM' section