You will never solve the two party system without changing voting to one that negates the spoiler effect.
And you will never change voting to one that negates the spoiler effect while the two party system is in effect, because the two parties with power both benefit from it being the way it is.