The school's principal started the program after noticing students were more engaged with their cellphones than their studies.