Added maximum score functionality