replaced alerts(for testing) by calling the play function