end message

add sending end message to public
add check near enemy on npc attaking, need to test
need more optimisations