Update Block.java

hashcode was coded incorrectly.