detectable checks for ground position instead of normal position

added state machine to chase player state to get back to idle state after chasing the player