added some declarations
added solution::isBetter?