in princeton on january 3 , 1777 , after a brief battle against the british garrison , the continental army decisively defeated the british and captured most of the troops under the command of general mawhood .