Update LeftOrRight.java

made variables private