adding player controller handling