John hadn't planned to go to the party. He went anyway and had a great time. Which sentence correctly joins the clauses above without changing their meaning?

1.)John hadn't planned to go to the party he went anyway; and had a great time.

2.)John hadn't planned to go to the party instead he went anyway and had a great time.

3.)John hadn't planned to go to the party, but he went anyway and had a great time.

4.)John hadn't planned to go; to the party he went anyway and had a great time.