added final check for player npc. Removed useless includes. However, this code spams exceptions and I can't figure out why.