Add functions for lose animation