Make nextSide method a val