cleaning code + supporting redraw player when orientation is changed