Update Player.java

Added getter for energy.