added basic handling of incoming attacks and player positions