attach player to the window