IT IS FINISHED
fixed win condition bug