working movePlayer func