almost finished - need to write win check