The Prince of Wales has played table football and shadow boxed with young people experiencing homelessness.