add function checkRiverUpdated in CheckUpdated.java