added boolean for losing