Robot ordered to write lines as punishment for crime it hasn't committed yet