Added test for loser & endMessage functions
Added loser and endMessage functions