player and optimization update

started working in player control and optimaztion debug options