Maiden century of season gives struggling club chance to salvage final match