Window in the player struct should be a pointer, move window creation to it's own function like the other controls, move checking for hovering over the titlebar into it's own function so you can get a visual indication of when you're hovering over it (title turns green)