solver works and draws correctly