added calculatescore() from watermelon.sim.watermelon.java in to PlayerUtil