Create Power.java

took me a while, but i finally figured it out. simplified it from my original plan, too.