Added lose and win action