Update Rule.java

Created the shiftVertical method.