Added hasSolution() method (correctly...)

Fixed the mistakes from before.