player wins code in entity