Added comments for initPlyer function