You can NOT get to heaven by GOOD WORKS!
You need to read Romans.
Paul says, (In the KJV):
Romans 2:14-5
“For when the Gentiles, which have not the law, do by nature the things contained in the law, these, having not the law, are a law unto themselves:
Which shew the work of the law written in their hearts, their conscience also bearing witness, and their thoughts the mean while accusing or else excusing one another;)”