added freeze and declaring winner