@Override
    public void mouseExited(MouseEvent e) {
        Virucide.moving = true;
        try {
            Robot r = new Robot();
            Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
            if (game && !Virucide.menu && !Virucide.pause && !clickedAgain && !Virucide.loose && !Virucide.win) {
                r.mouseMove((dim.width) / 2, (dim.height) / 2); //basically if the mouse moves off screen set it back to the center
                Virucide.oldx = (dim.width) / 2;
                Virucide.newx = (dim.width) / 2;
            }
        } catch (AWTException ex) {
        }
        Virucide.moving = false;
    }