Fixed isAllowed
Fixed Solve
Fixed endless loop in test
Added Hint()