removed renderwindow from player::update