added the code for head tracking, did'nt try to compile or run it yet