Tom Hanks credits two friends for changing the course of his life