A simple moving black square in ACM with Java