process player input