God didn't make us ominscient and omnipotent, so He made us imperfect. Since he made us with imperfect skills, knowledge, etc, He can't justly expect us to behave perfectly. So if we behave well enough, with Good Works, then in His Mercy, I think He'll allow us into Heaven on that basis.