fix attack equation and add attack power to view