removed most duplicated code in G_FindPower
fixed an error introduced in previous commit