Filled out player losing logic. More to come