changed order for checking win and power up