Refactored 'repaint' funcionality to automatically delete teams once button clicked.