Move player controls to lua script