generated a window, defined health in player