added in functionality for declaring the winner