public void actionPerformed(ActionEvent e) {
   compute();
   player.move();
   repaint();
 }