moved alert from war function to play function
added solution for ties