made some changes in patrolling enemy detection of player