Changed an if to be more clear
More OOP!
I finally have a hang on prototypes and inheritance in JS, so implementing to make the code simpler.
Merge pull request #15 from jmullercuber/master

OOP Alast!