Define is-front? helper function in snake game clock function.