added initial version for player controller