Refactor rosterwin.c