added finishedGameWithWinner function
added uialertview