Change "||" to "&&"

Line344: if(0 <= value || value < MAXSN) {

Line344: if(0 <= value && value < MAXSN) {