added setVisible(false) to hammer loop