Changed score function to get a score based on how well the program did in a game